import axios from 'axios'

// 获取省
export const fetchData = () => axios.get('/provience.json')

// 获取市
export const fetchCity = (provienceid) => axios.get("/provience.json").then(res => res.data.data.filter(item => item.parentId == provienceid))

// 获取县
export const fetchCounty = (countyId) => axios.get("/provience.json").then(res => res.data.data.filter(item => item.parentId == countyId))